package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.AttendanceDao;
import mx.entity.Attendance;
import mx.service.AttendanceService;

@Service
public class AttendanceServiceImpl implements AttendanceService {

	@Resource
	private AttendanceDao attendanceDao;

	public List<Attendance> list(Map<String, Object> map) {
		return attendanceDao.list(map);
	}

	public Attendance find(Attendance attendance) {
		return attendanceDao.find(attendance);
	}

	public Long getTotal(Map<String, Object> map) {
		return attendanceDao.getTotal(map);
	}

	public int update(Attendance attendance) {
		return attendanceDao.update(attendance);
	}

	public int delete(Integer id) {
		return attendanceDao.delete(id);
	}

	public int add(Attendance attendance) {
		return attendanceDao.add(attendance);
	}

}
